package com.example.SocialApplication.db.entity;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "thing_main")
public class ThingMain implements Serializable {

    @DatabaseField(columnName = "id", generatedId = true, canBeNull = false, dataType = DataType.INTEGER)
    private int id;
    @DatabaseField(columnName = "name", canBeNull = false, dataType = DataType.STRING)
    private String name;
    @DatabaseField(columnName = "picture_id", canBeNull = true, dataType = DataType.STRING)
    private String pictureId;
    @DatabaseField(columnName = "color", canBeNull = true, dataType = DataType.STRING)
    private String color;

    public ThingMain() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPictureId() {
        return pictureId;
    }

    public void setPictureId(String pictureId) {
        this.pictureId = pictureId;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
